From c4acebc72c26fa7f6612a39e29261b2206dbe9d3 Mon Sep 17 00:00:00 2001 From: robertl Date: Mon, 24 Oct 2005 16:51:50 +0000 Subject: [PATCH] Allow override of creator name. --- gpx.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gpx.c b/gpx.c index 4063e181f..d4485969a 100644 --- a/gpx.c +++ b/gpx.c @@ -64,6 +64,10 @@ static route_head *rte_head; #define MY_CBUF_SZ 4096 #define DEFAULT_XSI_SCHEMA_LOC "http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd" #define DEFAULT_XSI_SCHEMA_LOC_FMT "\"http://www.topografix.com/GPX/%c/%c http://www.topografix.com/GPX/%c/%c/gpx.xsd\"" +#ifndef CREATOR_NAME_URL +# define CREATOR_NAME_URL "GPSBabel - http://www.gpsbabel.org" +#endif + /* * Format used for floating point formats. Put in one place to make it @@ -992,6 +996,8 @@ gpx_rd_deinit(void) } XML_ParserFree(psr); psr = NULL; + wpt_tmp = NULL; + cur_tag = NULL; } static void @@ -1442,7 +1448,7 @@ gpx_write(void) fprintf(ofd, "\n", global_opts.charset_name); fprintf(ofd, "